package com.liping.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户实体
 *
 *
 * @author XUEW
 */
//自动生成get、set
@Data
//创建无参构造 Lombok
@NoArgsConstructor
//创建全参构造 Lombok
@AllArgsConstructor
//生成Buick
@Builder
//@TableName("user")
public class Illness {
    /**
     * 主键ID
     * 需要设置为自增
     */
    @TableId(type = IdType.AUTO)
    public Integer id;

    public Integer kindId;

    public String illnessName;

    public String includeReason;

    public String illnessSympton;

    public String specialSymptom;

    public Date createTime;

    public Date updateTime;
    /*
    不是表的字段
     */
    @TableField(exist = false)
    private String kindName;
    @TableField(exist = false)
    private String pageView;
}
